package com.cq.hd.order.po;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 订单退款表
 * </p>
 *
 * @author mYunYu
 * @since 2024-01-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_order_refund")
@ApiModel(value="TbOrderRefundPo对象", description="订单退款表")
public class TbOrderRefundPo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "商家id")
    @TableField("business_id")
    private Long businessId;

    @ApiModelProperty(value = "用户id")
    @TableField("user_id")
    private Long userId;

    @ApiModelProperty(value = "订单id")
    @TableField("order_id")
    private Long orderId;

    @ApiModelProperty(value = "退款类型(1-用户申请退款，2-核销过期自动退,3-报名活动未满员自动退，4-阶梯价格退还)")
    @TableField("refund_type")
    private Integer refundType;

    @ApiModelProperty(value = "原交易请求日期")
    @TableField("org_req_date")
    private String orgReqDate;

    @ApiModelProperty(value = "原交易请求流水号")
    @TableField("org_req_seq_id")
    private String orgReqSeqId;

    @ApiModelProperty(value = "退款请求日期")
    @TableField("req_date")
    private String reqDate;

    @ApiModelProperty(value = "退款请求流水号")
    @TableField("req_seq_id")
    private String reqSeqId;

    @ApiModelProperty(value = "退款金额")
    @TableField("refund_amt")
    private BigDecimal refundAmt;

    @ApiModelProperty(value = "退款交易状态(1-待处理，2-处理中，3-成功，4-失败)")
    @TableField("refund_state")
    private Integer refundState;

    @ApiModelProperty(value = "退款失败原因")
    @TableField("refund_reason")
    private String refundReason;

    @ApiModelProperty(value = "退款申请时间")
    @TableField("refund_apply_time")
    private LocalDateTime refundApplyTime;

    @ApiModelProperty(value = "退款完成时间")
    @TableField("refund_finish_time")
    private LocalDateTime refundFinishTime;

    @ApiModelProperty(value = "创建者")
    @TableField("create_by")
    private Integer createBy;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新者")
    @TableField("update_by")
    private Integer updateBy;

    @ApiModelProperty(value = "更新时间")
    @TableField("update_time")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "备注")
    @TableField("remark")
    private String remark;

    @ApiModelProperty(value = "删除状态:0-正常，1-已删除")
    @TableField("del_state")
    private Integer delState;


}
